package com.dbz.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.dbz.entity.Business;
import com.dbz.entity.User;
import org.apache.ibatis.annotations.Param;

public interface BusinessDao extends BaseMapper<Business> {
    /**
     * 分页查询
     * @param page
     * @param queryMapper
     * @return
     */
    public IPage<Business> selectPage(IPage<Business> page, @Param(Constants.WRAPPER) Wrapper<Business> queryMapper);

    /**
     * 根据id删除客户
     * @param bid
     * @return
     */
    public int delecteBusiness(String bid);

    /**
     * 添加客户信息
     * @param bname
     * @param bphone
     * @return
     */
    public int insertBusiness(String bname,String bphone);

    /**
     * 修改客户信息
     * @param bid
     * @param bname
     * @param bphone
     * @return
     */
    public int updateBusiness(String bid,String bname,String bphone);
}
